package com.imooc.o2o.web.shopadmin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created By Shamar
 */
@Controller
@RequestMapping(value = "shopadmin", method ={RequestMethod.GET} )
public class ShopAdminController {
    @RequestMapping(value = "/shopedit")
    public String shopOperation(){
        return "shop/shopedit";
    }

    @RequestMapping(value = "/shoplist")
    public String shopList(){
        return "shop/shoplist";
    }

    @RequestMapping(value = "/shopmanagement")
    public String shopManagement(){
        return "shop/shopmanage";
    }

    @RequestMapping(value = "/productcategorymanagement",method = RequestMethod.GET)
    public String productCategoryManage(){
        return "shop/productcategorymanage";
    }

    @RequestMapping(value = "/productedit",method = RequestMethod.GET)
    public String productOperation(){
        return "shop/productedit";
    }

    //定义转发路由
    @RequestMapping(value = "/productmanagement",method = RequestMethod.GET)
    public String productManagement(){
        return "shop/productmanage";
    }

    //店铺分类编辑
    @RequestMapping(value = "/shopcategoryedit",method = RequestMethod.GET)
    public String shopCategoryEdit(){
        return "shop/shopcategoryedit";
    }
}
